<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ include file="_sessioncheck.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Matrix Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/uniform.css" />
<link rel="stylesheet" href="css/select2.css" />
<link rel="stylesheet" href="css/matrix-style.css" />
<link rel="stylesheet" href="css/matrix-media.css" />
<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
<link
	href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
	rel='stylesheet' type='text/css'>
</head>
<body>

	<!--Header-part-->
	<div id="header">
		<h1>
			<a href="dashboard.html">Matrix Admin</a>
		</h1>
	</div>
	<!--close-Header-part-->

	<!--top-Header-menu-->
	<div id="user-nav" class="navbar navbar-inverse">
		<ul class="nav">
			<li class="dropdown" id="profile-messages"><a title="" href="#"
				data-toggle="dropdown" data-target="#profile-messages"
				class="dropdown-toggle"><i class="icon icon-user"></i> <span
					class="text">Welcome User</span><b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a href="#"><i class="icon-user"></i> My Profile</a></li>
					<li class="divider"></li>
					<li><a href="#"><i class="icon-check"></i> My Tasks</a></li>
					<li class="divider"></li>
					<li><a href="login.html"><i class="icon-key"></i> Log Out</a></li>
				</ul></li>
			<li class="dropdown" id="menu-messages"><a href="#"
				data-toggle="dropdown" data-target="#menu-messages"
				class="dropdown-toggle"><i class="icon icon-envelope"></i> <span
					class="text">Messages</span> <span class="label label-important">5</span>
					<b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a class="sAdd" title="" href="#"><i class="icon-plus"></i>
							new message</a></li>
					<li class="divider"></li>
					<li><a class="sInbox" title="" href="#"><i
							class="icon-envelope"></i> inbox</a></li>
					<li class="divider"></li>
					<li><a class="sOutbox" title="" href="#"><i
							class="icon-arrow-up"></i> outbox</a></li>
					<li class="divider"></li>
					<li><a class="sTrash" title="" href="#"><i
							class="icon-trash"></i> trash</a></li>
				</ul></li>
			<li class=""><a title="" href="#"><i class="icon icon-cog"></i>
					<span class="text">Settings</span></a></li>
			<li class=""><a title="" href="login.html"><i
					class="icon icon-share-alt"></i> <span class="text">Logout</span></a></li>
		</ul>
	</div>

	<!--start-top-serch-->
	<div id="search">
		<input type="text" placeholder="Search here..." />
		<button type="submit" class="tip-bottom" title="Search">
			<i class="icon-search icon-white"></i>
		</button>
	</div>
	<!--close-top-serch-->

	<!--sidebar-menu-->

	<div id="sidebar">
		<a href="#" class="visible-phone"><i class="icon icon-th"></i>Tables</a>
		<ul>
			<li class="active"><a href="admin_index"><i class="icon icon-home"></i> <span>首页</span></a> </li>
    <li> <a href="category_list"><i class="icon icon-signal"></i> <span>类别 管理</span></a> </li>
    <li> <a href="article_list"><i class="icon icon-inbox"></i> <span>文章 管理</span></a> </li>
    <li><a href="admin_list"><i class="icon icon-th"></i> <span>管理员 管理</span></a></li>
    <li><a href="page_list"><i class="icon icon-fullscreen"></i> <span>页面管理</span></a></li>
		</ul>
	</div>
	<div id="content">
		<div id="content-header">
			<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i
					class="icon-home"></i> Home</a> <a href="#" class="current">Tables</a>
			</div>
			<h1>
				类别列表 &nbsp;&nbsp; <input type="button" class="btn btn-warning"
					onclick="window.open('category_addUI')" value="+ 添加类别">
			</h1>

		</div>
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-title">
							<span class="icon"><i class="icon-th"></i></span>
							<h5>现在所有的类别</h5>
						</div>
						<div class="widget-content nopadding">

							<div class="widget-box collapsible">
								<s:iterator value="categoryList" var="category">
									<div class="widget-title">
										<a href="#<s:property value="id"/>" data-toggle="collapse">
											<span class="icon"><i class="icon-arrow-right"></i></span>
											<h5>
												<s:property value="name" />
											</h5>
										</a>
									</div>
									<h5 align="left">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
											href="categoryChild_addUI?category.id=<s:property value="id"/>">添加子类</a>
										&nbsp; | &nbsp; <a
											href="category_updateUI?category.id=<s:property value="id"/>">
											编辑</a> &nbsp; | &nbsp; <a
											href="category_delete?category.id=<s:property value="id"/>">
											删除</a>
									</h5>

									<div class="collapse in" id="<s:property value="id"/>">
										<div class="widget-content">
											<table class="table table-bordered table-striped">
												<thead>
													<tr>
														<th>子类列表：</th>
														<th>文章数</th>
														<th></th>
														<th></th>
														<th></th>
													</tr>
												</thead>
												<tbody>
													<s:iterator value="categoryChilds" var="categoryChild">
														<tr class="odd gradeX">
															<td><s:property value="#categoryChild.name" /></td>
															<td></td>
															<td></td>
															<td class="center"><a href="categoryChild_updateUI?categoryChild.id=<s:property value="#categoryChild.id" />">编辑</a></td>
															<td class="center"><a href="categoryChild_delete?categoryChild.idd=<s:property value="#categoryChild.id" />">删除</a></td>
														</tr>
													</s:iterator>
												</tbody>
											</table>
										</div>
									</div>
								</s:iterator>
							</div>


						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--Footer-part-->
	<div class="row-fluid">
		<div id="footer" class="span12">
			2013 &copy; Matrix Admin. Brought to you by <a
				href="http://themedesigner.in/">Themedesigner.in</a>
		</div>
	</div>
	<!--end-Footer-part-->
	<script src="js/jquery.min.js"></script>
	<script src="js/jquery.ui.custom.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/jquery.uniform.js"></script>
	<script src="js/select2.min.js"></script>
	<script src="js/jquery.dataTables.min.js"></script>
	<script src="js/matrix.js"></script>
	<script src="js/matrix.tables.js"></script>
</body>
</html>
